<?php
/**
 * 后台管理中心基类
 */
class Cms_AdminController extends Zend_Controller_Action {
	
	public $AdminSessionInfo; //登录用户相关信息
	

	/**
	 * 初始化
	 *
	 */
	public function init() {
		
		parent::init ();
		
		$this->AdminSessionInfo = Zend_Registry::get ( 'CmsAdminSessionInfo' );
		
		if (! $this->AdminSessionInfo ['uid']) {
			$this->view->perRedirect ( '你还未登陆，请登陆!', '/login/' );
		}
		
		//dump ( $this->AdminSessionInfo );
		//dump ( $this->_request );
		//exit ();
		

		//****************更新用户当前操作功能地址***************************
		$module = $this->_getParam ( 'module' );
		$controller = $this->_getParam ( 'controller' );
		$action = $this->_getParam ( 'action' );
		
		$DB_AdminSession = new DB_AdminSession ();
		$DB_AdminSession->updateSessionInfoBySid ( $this->AdminSessionInfo ['sid'], array ('action' => "/$module/$controller/$action/" ) );
	
		//*****************************************************************
	}
	
	public function indexAction() {
	}
}
?>